﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Xml.Serialization;

namespace GC_FFW.BusinessEntities.Soccerfame.Xml
{
	[XmlRoot("names")]
	public class Names : ICloneable
	{
		#region Properties

		[XmlElement("name")]
		public List<Name> Items { get; set; }

		#endregion

		#region ICloneable Members

		public object Clone()
		{
			return new Names
			{
				Items = Items != null
					? Items.Select(i => i.Clone() as Name).ToList()
					: null
			};
		}

		#endregion
	}
}
